package cn.fbs.dao.dm;

import cn.fbs.model.TQbCategoryConnection;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface DMQbCategoryConnectionMapper {
    int deleteByPrimaryKey(Long id);

    void insert(TQbCategoryConnection record);

    int insertSelective(TQbCategoryConnection record);

    TQbCategoryConnection selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TQbCategoryConnection record);

    int updateByPrimaryKey(TQbCategoryConnection record);

    void deleteByMessageId(Long messageId);

    void deleteByMessageIds(@Param("idsStr") String idsStr, @Param("type") int type);

    List<Integer> getMessageIdByCategoryId(@Param("categoryIdsStr") String categoryIdsStr);

    void batchInsert(ArrayList<TQbCategoryConnection> list);
}